import com.google.common.io.Files;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;

import java.io.File;
import java.io.IOException;

import static com.sun.xml.internal.ws.dump.LoggingDumpTube.Position.Before;

/**
 * Created by luojing on 2017/9/17.
 */
public class ShowFileStatusText {

    private FileSystem fs;

    public void fileStatusForFile() throws IOException {
        Path path = new Path("/user/hadoop/input/hadoopCopy.txt");
        FileStatus fileStatus = fs.getFileStatus(path);
    }
}
